package com.guapi.model;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="search")
public class ContentSearchResult {
	
	private List<Content> contentList;
	private Integer count;
	private Integer startIndex;

	public void setContentList(List<Content> contentList) {
		this.contentList = contentList;
	}

	@XmlElementWrapper(name="results")
	@XmlElement(name="content")
	public List<Content> getContentList() {
		return contentList;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	@XmlAttribute(name="count")
	public Integer getCount() {
		return count;
	}

	public void setStartIndex(Integer startIndex) {
		this.startIndex = startIndex;
	}

	@XmlAttribute(name="start-index")
	public Integer getStartIndex() {
		return startIndex;
	}

}
